cls
$MainJava	= "Main"

$ClassPath	 = "C:\DEV\Eclipse\workspace\Compilo;" 
$ClassPath	+= "C:\DEV\Eclipse\workspace\Compilo\tools\java-cup-11a-runtime.jar;"
$ClassPath	+= "C:\DEV\Eclipse\workspace\Compilo\tools\java-cup-11a.jar;"
$ClassPath	+= "C:\DEV\Eclipse\workspace\Compilo\tools\jflex-1.4.1\jflex-1.4.1\lib\JFlex.jar"


$RepertoireJMM = "C:\DEV\Eclipse\workspace\Compilo\jmm\KO"


$lesFichiers = ls $RepertoireJMM -filter "*.jmm"
foreach( $fichier in $lesFichiers  )
{
	$arg = $RepertoireJMM + "\" + $fichier
	$res = java -classpath $ClassPath $MainJava  $arg 


	write-host "-------------------------------"
	write-host "<< " $fichier " >>" 
	write-host "
"
	write-host $res
	write-host "-------------------------------"
	write-host "
"
}




$RepertoireJMM = "C:\DEV\Eclipse\workspace\Compilo\jmm\OK"
$lesFichiers = ls $RepertoireJMM -filter "*.jmm"

foreach( $fichier in $lesFichiers  )
{
	$arg = $RepertoireJMM + "\" + $fichier
	$res = java -classpath $ClassPath $MainJava  $arg 


	write-host "-------------------------------"
	write-host "<<" $fichier " >> " 
	write-host "
"
	write-host $res
	write-host "-------------------------------"
	write-host "
"
}

